<template>
    <div class="user">
        <div class="title"><img src="~@/assets/images/icon/yonghu.svg" alt=""> 用户信息</div>
        <div class="user-info">
            <div class="avatar"><img src="~@/assets/images/user/touxiang.png" alt=""></div>
            <div class="text">
                <div class="username">fhtwl</div>
                <div class="capital">
                    <div class="grade"><img src="~@/assets/images/icon/xunzhang.svg" alt="">4</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {

            };
        },
        props: {
            list: {
                type: Array,
                default: ()=>{
                    return []
                }
            },
        },
    };
</script>

<style lang="scss" scoped>
    .user {
        width: 100%;
        height: 100%;
        background:#fff;
        border-radius: 6rem;
        box-shadow: 0rem 2rem 12rem 6rem rgba(3,5,27,0.06);
        .title {
            width: 100%;
            height: 40rem;
            display: flex;
            align-items: center;
            border-bottom: 1rem solid #eee;
            box-sizing: border-box;
            padding: 0 6rem;
            font-weight: 600;
            img {
                width: 30rem;
                height: 30rem;
                margin-right: 10rem;
            }
        }
        .user-info {
            display: flex;
            align-items: center;
            padding: 10rem 10rem;
            .avatar {
                width: 45rem;
                height: 45rem;
                font-size: 0;
                margin-right: 10rem;
                img {
                    width: 100%;
                    height: 100%
                }
            }
            .username {
                color: #333;
            }
            .capital {
                display: flex;
                align-items: center;
                font-size: 12rem;
                color: #999;
                img {
                    width: 14rem;
                    height: 14rem;
                    vertical-align: middle;
                }
                .grade {
                    display: flex;
                    vertical-align: middle;
                }
            }
        }
    }
</style>